#include<stdio.h>
int main()
{
	int n,a=0,b=0,c=0,digit;
	scanf("%d",&n);
	for(int i=0;i<n;i++) {
		scanf("%d",&digit);
		if(digit<0)
		a++;
		else if(digit==0)
		b++;
		else
		c++;
	}
	printf("%d %d %d\n",a,b,c);
	return 0;
}
